<%--
  Created by IntelliJ IDEA.
  User: hsy
  Date: 2023/5/24
  Time: 19:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    body {
        font-family: Arial, sans-serif;
        background-color: #f8f8f8;
    }

    h1 {
        margin-top: 50px;
        font-size: 2em;
        text-align: center;
        color: #333;
    }

    p {
        font-size: 1.5em;
        text-align: center;
        color: #ff0000;
        margin-top: 20px;
    }

</style>
<body>
<h1>发生了错误</h1>
<%
  Object error = request.getAttribute("error");
%>
<p style="color:red;"><%= error %></p>
</body>
</html>
